package com.lujianfei.netease_android_mvvm_kotlin

import android.app.Application
import com.lujianfei.netease_android_mvvm_kotlin.module.appModule
import org.koin.android.ext.android.startKoin
import org.koin.android.logger.AndroidLogger
import kotlin.properties.Delegates

class App : Application() {

    companion object {
        lateinit var instance:Application
    }

    override fun onCreate() {
        super.onCreate()
        instance = this
        startKoin(this@App, appModule, logger = AndroidLogger())
    }
}